package org.upfrost;

public class Statistics 
{
	private long m_sessionsOpened = 0, m_sessionsClosed =0;
	private long m_queriesCreated = 0, m_queriesClosed =0;

	private long m_dataCacheHit = 0, m_dataCacheMiss = 0;
	private long m_queryCacheHit = 0, m_queryCacheMiss = 0;
	
	public long getSessionsOpened() {
		return m_sessionsOpened;
	}
	public void setSessionsOpened(long sessionsOpened) {
		m_sessionsOpened = sessionsOpened;
	}
	public long getSessionsClosed() {
		return m_sessionsClosed;
	}
	public void setSessionsClosed(long sessionsClosed) {
		m_sessionsClosed = sessionsClosed;
	}
	public long getQueriesCreated() {
		return m_queriesCreated;
	}
	public void setQueriesCreated(long queriesCreated) {
		m_queriesCreated = queriesCreated;
	}
	public long getQueriesClosed() {
		return m_queriesClosed;
	}
	public void setQueriesClosed(long queriesClosed) {
		m_queriesClosed = queriesClosed;
	}
	public long getDataCacheHit() {
		return m_dataCacheHit;
	}
	public void setDataCacheHit(long dataCacheHit) {
		m_dataCacheHit = dataCacheHit;
	}
	public long getDataCacheMiss() {
		return m_dataCacheMiss;
	}
	public void setDataCacheMiss(long dataCacheMiss) {
		m_dataCacheMiss = dataCacheMiss;
	}
	public long getQueryCacheHit() {
		return m_queryCacheHit;
	}
	public void setQueryCacheHit(long queryCacheHit) {
		m_queryCacheHit = queryCacheHit;
	}
	public long getQueryCacheMiss() {
		return m_queryCacheMiss;
	}
	public void setQueryCacheMiss(long queryCacheMiss) {
		m_queryCacheMiss = queryCacheMiss;
	}
	
	public void incOpenedSession()
	{
		m_sessionsOpened++;
	}
	
	public void incClosedSession()
	{
		m_sessionsClosed++;
	}

	public void incCreatedQuery()
	{
		m_queriesCreated++;
	}
	
	public void incClosedQuery()
	{
		m_queriesClosed++;
	}
	
	public void incDataCacheHit()
	{
		m_dataCacheHit++;
	}
	
	public void incDataCacheMiss()
	{
		m_dataCacheMiss++;
	}
	
	public void incQueryCacheHit()
	{
		m_queryCacheHit++;
	}
	
	public void incQueryCacheMiss()
	{
		m_queryCacheMiss++;
	}
	
}
